package com.kstech.mp3604.base

import android.app.Application


/**
 * author: blankii
 * created on: 2025/3/18 14:38
 * description:
 */
class MyApplication : Application() {
    companion object {
        lateinit var app: MyApplication

        init {
            fun getApp(): MyApplication {
                return app
            }
        }
    }

    override fun onCreate() {
        super.onCreate()
        app = this

//        ThreadUtil.executeIOFun {
//            val dao = DbManager.db.initConfigDao()
//            val count = dao.queryInitConfigCount()
//            /**
//             * 如何没有初始化
//             */
//            if (count < 10) {
//                val arr = mutableListOf<ControlInitData>()
//                dao.addBatchControlInitData(arr)
//            }
//        }
    }

}